package com.harry.mapper;

import com.harry.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;

@Mapper
@Repository
public interface UserMapper
{
    User login(String open_id);
    List<Doctor> getDoctors();
    ScheduleRecord getDoctorAvailable(int doctor_id, Timestamp start_time);
    void addRegister(String open_id, int doctor_id, Timestamp start_time);
    void updateDoctorRegister(int doctor_id, Timestamp start_time);
    Payment payment(String open_id);
    List<GetMedicine> getMedicine(String open_id);
    MedicineRepo getSingleMedicineRepo(int medicine_id);
    UserStage getNowStage(String open_id);
    List<RegisterRecord> getRegisterRecord(String open_id);
}